package com.tebiecloud.order.client.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.order.client.model.entity.OrderStats1;
import com.tebiecloud.order.client.model.vo.NotArrivedList;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

public interface IStats1ServiceClient {

    /**
     * 获取会员列表
     * @param page
     * @param limit
     * @param storeId
     * @param keyword
     * @return
     */
    @PostMapping("/feign/orderstats1/listPage")
    ResultBody<Page<OrderStats1>> statsListPage(@RequestParam("page") int page, @RequestParam("limit") int limit,
                                                @RequestParam("storeId") long storeId, @RequestParam(value = "keyword",required = false) String keyword);

    /**
     * 获取会员信息
     * @param unionid
     * @param storeId
     * @return
     */
    @PostMapping("/feign/orderstats1/statsInfo")
    ResultBody<OrderStats1> statsInfo(@RequestParam("unionid") String unionid,
                                      @RequestParam("storeId") long storeId);

    /**
     * 更新会员备注
     * @param unionid
     * @param storeId
     * @return
     */
    @PostMapping("/feign/orderstats1/statsUpdate")
    ResultBody statsUpdate(@RequestParam("unionid") String unionid,
                           @RequestParam("storeId") long storeId,
                           @RequestParam("remarkName") String remarkName);
}
